home *** CD-ROM | disk | FTP | other *** search
- Path: alfa.ist.utl.pt!l36686
- From: l36686@alfa.ist.utl.pt (Ricardo Manuel Antunes Vinagre)
- Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
- Subject: Re: Young programmers read me.
- Followup-To: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
- Date: 9 Apr 1996 15:39:23 GMT
- Organization: Instituto Superior Tecnico
- Message-ID: <4ke0bb$7ot@ci.ist.utl.pt>
- References: <4icpp9$7hr@barad-dur.nas.com> <4imqe4$cj3@ping1.ping.be> <1996Mar23.224853.116513@kuhub.cc.ukans.edu> <4j52hn$ikb@news.ios.com> <Pine.OSF.3.91.960403112207.17337H-100000@bud.cc.swin.edu.au> <aidan-0404961557290001@meathook.intac.com> <pnoguchi-0404962135210001@pnoguchi.his.com> <aidan-0604961847480001@meathook.intac.com>
- NNTP-Posting-Host: alfa.ist.utl.pt
- X-Newsreader: TIN [version 1.2 PL2]
-
- Aidan Cully (aidan@genghis.kublai.com) wrote:
- : > programmer to do. Unlike Pascal, C/C++ compilers usually assume a
- : > programmer is intelligent enough to capture most bugs in a program, which
- : > is a good reason for loose syntax. Besides which, if you have so much
- : > trouble with C/C++, is that a failing of the language, or your programming
- : > skills?
-
- : Here you point out one of my greatest objections to the language as though
- : it were a feature... I agree that a programmer should be able to find his
- : own bugs, but loose syntax is just pointless, and makes the bug-hunt just
- : so much harder.
-
- It's not hard to go a little furter and arrive to the conclusion:
- Flexibility and/or Speed == Bigger holes in the language
-
- You can't expect to be able, for instance, to freely use pointers without
- the danger of "writing in the wrong place".
-
- To get things like safe arrays, there are plenty of freeware C++ Array
- classes with auto-bonds-checking. Of curse you will make slower programs,
- but thats what you get when you want a bullet-proof language.
-
- : I don't think that anyone should have the right to feel
- : macho about being able to figure out how to program in one language while
- : others can't unless the language has some spiffy new layer of abstraction
- : or something that people can't deal with (e.g. OOP), but otherwise it
- : seems like the language is badly designed. After gaining a mastery of
- : C++, then learning other OOP languages, I have come to the conclusion that
- : C++ is badly designed. For example, Function pointer will return an
- : integer, takes two ints as parameters. In C/C++
- : typedef (int*)(int a, int b) MyFuncType;
- : MyFuncType MyFunc;
- : in Oberon
- : TYPE
- : MyFuncType:FUNCTION( a, b:INTEGER ):INTEGER;
- : VAR
- : MyFunc:MyFuncType;
- : Which do you think looks more readable?
-
- The second - but i did learn Pascal ...
-
- Of curse there are some things in C++ people don't use that make life really
- easy - for instance here's how you test a stream named "mystream" for any
- kind of error:
-
- if( !mystream ){
- // Error ...
- }
-
- If you know C++ and want to learn some more, how about reading again the best
- book you ever read about it - i did, and found out some usefull thing i had
- never used before...
-
- : BTW, I have absolutely no trouble programming in C++, and I have said that
- : I am writing a game in C++, but this is only for speed and the compiler is
- : readily available, and all the spiffy things I can do with built in ASM
- : support. And all I ever said was that as a *language*, C++ blows. Not at
- : compiled program size and speed.
-
- If your only trouble is speed and executable size, and you think that C++
- "blows" as language, then you better try Assembly - that generates the
- faster and smaller executables i have ever seen!!!
-
- Of curse it will give the biggest headache you have ever had..
-
- --
- *-----------------------------------------------------------------------*
- | RRRRR V VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV |
- | R R V V |
- | RRRR V V A Student of Electronics at Instituto Superior |
- | R R V V Tecnico - LISBON - PORTUGAL |
- | R R VINAGRE |
- | |
- | Try out my WWW Home page - http://alfa.ist.utl.pt/~l36686/ |
- \_______________________________________________________________________/
- | Tired of Microsoft OS's - Try out Linux!!! - it doesn't have that |
- | much advertising but it's great anyway |
- *-----------------------------------------------------------------------*
-
-
-